package com.tx.gateway.route.service;

import org.springframework.cloud.gateway.route.RouteDefinition;
import reactor.core.publisher.Mono;

public interface DynRouteService {
    /**
     * 添加路由
     * @param routeDefinition
     * @return
     */
    String addRoute(RouteDefinition routeDefinition);

    /**
     * 更新路由
     * @param routeDefinition
     * @return
     */
    String updateRoute(RouteDefinition routeDefinition);

    /**
     * 删除路由
     * @param routeId
     * @return
     */
    Mono<String> deleteRoute(String routeId);
}
